analyze these two
function qI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function KI(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var XR={exports:{}},Ph={};
And
@license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $o=d,EI=wI;function CI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var SI=typeof Object.is=="function"?Object.is:CI,xI=EI.useSyncExternalStore,II=$o.useRef,AI=$o.useEffect,TI=$o.useMemo,RI=$o.useDebugValue;Wd.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=II(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=TI(function(){function c(g){if(!l){if(l=!0,u=g,g=r(g),o!==void 0&&i.hasValue){var _=i.value;if(o(_,g))return h=_}return h=g}if(_=h,SI(u,g))return _;var m=r(g);return o!==void 0&&o(_,m)?_:(u=g,h=m)}var l=!1,u,h,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,o]);var a=xI(e,s[0],s[1]);return AI(function(){i.hasValue=!0,i.value=a},[a]),RI(a),a};zd.exports=Wd;var OI=zd.exports;const Yd=fe(OI),Zd={BASE_URL:"https://cdn.oaistatic.com/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_URL:"https://chatgpt.com",VITE_CHAT_URL_PREFIX:"https://chatgpt.com/share/",VITE_CLIENT_EVENTS_SERVICE_URL:"chatgpt.com/ces",VITE_CONTINUE_SHARED_CHAT_URL_PREFIX:"https://chatgpt.com/share/",VITE_CONTINUE_SHARED_CHAT_URL_SUFFIX:"/continue",VITE_GIZMO_OAUTH_CALLBACK_URL:"https://chat.openai.com",VITE_INVITE_URL_PREFIX:"https://chatgpt.com/public-api/referral",VITE_LOGIN_WEB_URL:"https://auth.openai.com",VITE_OIW216Z_SERVICE_URL:"https://sora.com",VITE_PUBLIC_API_URL:"https://chatgpt.com/public-api",VITE_SHARED_ALT_API_URL:"https://chatgpt.com/backend-alt",VITE_SHARED_ANON_API_URL:"https://chatgpt.com/backend-anon",VITE_SHARED_API_URL:"https://chatgpt.com/backend-api",VITE_SNC_API_URL:"https://chatgpt.com/backend/se",VITE_STRIPE_PUBLISHABLE_KEY:"pk_live_51HOrSwC6h1nxGoI3lTAgRjYVrz4dU3fVOabyCcKR3pbEJguCVAlqCxdxCUvoRh1XWwRacViovU3kLKvpkjh7IqkW00iXQsjo3n",VITE_VOICE_FRONTDOOR_API_URL:"https://chatgpt.com/voice",VITE_VZA493Q_SERVICE_URL:"https://operator.chatgpt.com",VITE_WEB_PUSH_PUBLIC_KEY:"BElP4rBIs6aV_3Ic7Fl2rBw_a27isvPyMl_W4WwtlqsiehOYFYnwE21byf9bvFGEwWL8-k-zjZfGCG8HHKGW7OQ"},{useDebugValue:PI}=J,{useSyncExternalStoreWithSelector:kI}=Yd;let nl=!1;const NI=e=>e;function jo(e,t=NI,n){(Zd?"production":void 0)!=="production"&&n&&!nl&&(console.warn("[DEPRECATED] Use createWithEqualityFn instead of create or use useStoreWithEqualityFn instead of useStore. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),nl=!0);const r=kI(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return PI(r),r}const rl=e=>{(Zd?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use import { useStore } from 'zustand'.");const t=typeof e=="function"?On(e):e,n=(r,o)=>jo(t,r,o);return Object.assign(n,t),n},Xe=e=>e?rl(e):rl;function u8(){window.location.href=window.location.origin+"/auth/logout"}var MI=(e=>(e.OpenAI="openai",e.OpenAIDev="openai-dev",e.Auth0="auth0",e.Auth0dev="auth0dev",e.Mocked="mocked",e.LoginWebAuth0="login-web",e.LoginWebAuth0Dev="login-web-dev",e.Auth0Sidetron="auth0-sidetron",e.Auth0SidetronDev="auth0-sidetron-dev",e.OpenAISidetron="openai-sidetron",e.OpenAISidetronDev="openai-sidetron-dev",e))(MI||{}),LI=(e=>(e[e.Auth0=1]="Auth0",e[e.WorkOS=2]="WorkOS",e))(LI||{});const Jd=dr(e=>{const t=$e(e),n=t.authStatus==="logged_in"?t.session:null;return On(()=>({session:n}))});function Zn(e){return $e(e).authStatus==="logged_in"}function Xd(e){return Jd(e).getState().session}function Qd(e){return Xd(e)?.accessToken}async function DI(){try{const e=Date.now(),t=await fetch("/api/auth/session?refresh=true"),n=await t.json(),o=(Date.now()-e)/1e3;if(t.status!==200&&A.addAction("fetchSession.statusNon200",{status:t.status,reqDuration:o}),Object.keys(n).length)return n.accessToken==null&&n.error==null&&A.addAction("missing_access_token_error",{error:Missing access token for User: ${n.user?.id} (${n.accessToken})}),n.error==="RefreshAccessTokenError"&&window._oaiHandleSessionExpired?.("page load",n.error),n.error&&A.addAction("fetchSession.error",{error:n.error}),n}catch{}return null}function ef(){const e=He();return{session:Xd(e),isLoading:!1}}function d8(e){return!e||!e.email?!1:e.email.endsWith("@openai.com")}var fn=(e=>(e.LoggedOut="logged_out",e.LoggedIn="logged_in",e))(fn||{}),$I=(e=>(e.AuthApi="authapi",e.Auth0="auth0",e))($I||{});const f8="https://api.openai.com/mfa";async function jI(e){const t=await DI(),n=Jd(e),r=n.getState().session;r&&t?.accessToken&&n.setState({session:{...r,accessToken:t.accessToken}})}const qe=window.localStorage;var vt=(e=>(e.Theme="theme",e.NextAuth="nextauth.message",e.IsNoAuthChatTrainingEnabled="oai/apps/isNoAuthChatTrainingEnabled",e.IsNavigationCollapsed="UiState.isNavigationCollapsed.1",e.IsHistoryCollapsed="UiState.isOnlyShowingRecents.1",e.ChatThreadFlyoutState="UiState.chatThreadFlyoutState",e.IsGptListCollapsed="UiState.isGptListCollapsed",e.LastUsedModel="oai/apps/lastModelUsed",e.EnabledPlugins="oai/enabledPluginIds",e.HasSeenNewChatModal="oai/apps/hasSeenNewChatModal",e.HasSeenMeetChatGptModal="oai/apps/hasSeenMeetChatGptModal",e.HasSignedUpForPlusUpgradeWaitlistV1="oai/apps/HasSignedUpForPlusUpgradeWaitlist",e.HasSignedUpForPlusUpgradeWaitlistV2="oai/apps/HasSignedUpForPlusUpgradeWaitlistV2",e.HasSignedUpForTeamUpgradeWaitlistV1="oai/apps/HasSignedUpForTeamUpgradeWaitlist",e.HasSignedUpForTeamUpgradeWaitlistV2="oai/apps/HasSignedUpForTeamUpgradeWaitlistV2",e.HasDismissedUpgradeInviteModal="oai/apps/hasDismissedUpgradeInviteModal",e.GizmoEditorTab="oai/apps/gizmoEditorTab",e.GizmoDiscoveryLocale="oai/apps/gizmoDiscoveryLocale",e.NoAuthRateLimitState="oai/apps/noAuthRateLimitState",e.RestoreMessageAfterOauthRedirect="oai/apps/restoreMessageAfterOauthRedirect",e.HasSeenAdaInteractiveChart="oai/apps/hasSeenAdaInteractiveChart",e.HasSeenAdaInteractiveTable="oai/apps/hasSeenAdaInteractiveTable",e.SearchSettings="oai/apps/searchSettings",e.NoAuthBannerDisclaimerClientThreadId="oai/apps/noAuthBannerDisclaimerClientThreadId",e.NoAuthHasAcceptedFooterDisclaimer="oai/apps/noAuthHasAcceptedFooterDisclaimer",e.NoAuthUserMessageCount="oai/apps/noAuthUserMessageCount",e.LoggedInUserMessageCount="oai/apps/loggedInUserMessageCount",e.NoAuthHasDismissedSoftRateLimitModal="oai/apps/noAuthHasDismissedSoftRateLimitModal",e.NoAuthHasSeenGpt4oModal="oai/apps/noAuthHasSeenGpt4oModal",e.MemoryFullBannerDismissed="oai/apps/memoryFullBannerDismissed",e.IndepthFeedbackDismissedAt="oai/apps/indepthFeedbackDismissedAt",e.AdvancedVoiceOnMobileAnnouncementCount="oai/apps/oai/apps/hasSeenAdvancedVoiceOnMobile/2024-09-26",e.CheckoutFrom="oai/apps/checkout_from",e.HasDismissedMobileAppUpsellBanner="oai/apps/hasDismissedMobileAppUpsellBanner",e.HasDismissedMoodengUpsellBanner="oai/apps/hasDismissedMoodengUpsellBanner",e.HasConfirmedCanvasCodeExecution="oai/apps/hasConfirmedCanvasCodeExecution",e.CODE_EXECUTION_DOMAIN_ALLOW_LIST="oai/apps/codeExecutionDomainAllowlistWithTTL",e.TasksHasSeenProjectDisclaimerBanner="oai/apps/tasksHasSeenProjectDisclaimerBanner",e.ExpandSummarizedCoT="oai/apps/ExpandSummarizedCoT",e.PromoCode="oai/apps/promoCode",e.LastPageLoadDate="oai/apps/lastPageLoadDate",e.NoAuthMadlibsModalState="oai/apps/noAuthMadlibsModalState",e.LastSeenPlusUpsellBannerAt="oai/apps/lastSeenPlusUpsellBannerAt",e.O3MiniHighInContextUpsellBanner="oai/apps/o3MiniHighInContextUpsellBanner",e.d2dee219="oai/apps/d2dee219",e.ReferralCode="oai/apps/referralCode",e.LastFeedLoad="oai/apps/2dc5214a",e.ConversationDrafts="oai/apps/conversationDrafts",e.DebugSettings="oai/apps/debugSettings",e.SegmentUserId="ajs_user_id",e.SegmentUserTraits="ajs_user_traits",e.MessageFollowupsStoreState="oai/apps/messageFollowupsStoreState",e.JumpToShade="jump-to-shade",e))(vt||{});class yt{static setItem(t,n,r){if(!qe)return;const o=bs(t,r);qe.setItem(o,JSON.stringify(n))}static getItem(t,n){if(!qe)return null;const r=bs(t,n),o=qe.getItem(r);return typeof o=="string"?JSON.parse(o):o}static removeItem(t,n){if(qe){const r=bs(t,n);return qe.removeItem(r)}}static DANGER_SECRET_FOLDERS_ONLY_setItem(t,n){if(!qe){console.warn(You cannot set localStorage server-side (${t}));return}qe.setItem(t,JSON.stringify(n))}static DANGER_SECRET_FOLDERS_ONLY_getItem(t){if(!qe)return console.warn(You cannot get localStorage server-side (${t})),null;const n=qe.getItem(t);return typeof n=="string"?JSON.parse(n):n}}function bs(e,t){const n=[e];return t!==void 0&&(t.userId!=null&&n.push(t.userId),t.workspaceId!=null&&n.push(t.workspaceId)),n.join("/")}function UI(){D.deleteCookie(N.SegmentUserId),D.deleteCookie(N.SegmentUserTraits),yt.removeItem(vt.SegmentUserId),yt.removeItem(vt.SegmentUserTraits)}const ai=()=>({hash:window.location.hash,path:window.location.pathname,search:window.location.search,url:window.location.href});function h8(){ge?.publish(_t.ZOOM,{command:yo.ZOOM_IN})}function p8(){ge?.publish(_t.ZOOM,{command:yo.ZOOM_OUT})}function g8(){ge?.publish(_t.ZOOM,{command:yo.ZOOM_RESET})}function ol(e){if(lr){const t=Date.now();ge?.publish(_t.ADD_BREADCRUMB,{message:e,epochTimestamp:t})}}function tf(){return D.getCookie(N.PunchOutInfoToken)}function m8(){return tf()!=null}class FI{analytics;appName;appVersion;deviceId;browserLocale;options;settings;user;constructor({appName:t,appVersion:n,deviceId:r,browserLocale:o,options:s,settings:i}){this.analytics=new Promise(a=>{I(()=>import("./kwfvtawksshdkfax.js").then(c=>c.v),__vite__mapDeps([0,1])).then(c=>{if(!c){A.addAction("ClientEventsServiceLogger.segmentImport.failed",{appName:t,appVersion:n});return}const l=new c.AnalyticsBrowser;l.addSourceMiddleware(BI(this)),a([l])})}),this.appName=t,this.appVersion=n,this.deviceId=r,this.browserLocale=o,this.options=s,this.settings=i}async initialize({user:t}){const n={appName:this.appName,appVersion:this.appVersion};A.addAction("ClientEventsServiceLogger.initialize.start",n),t&&this.identify(t);const[r]=await this.analytics;r.load(this.settings,this.options).catch(()=>{A.addAction("ClientEventsServiceLogger.initialize.failed",n)}),r.ready(()=>{A.addAction("ClientEventsServiceLogger.initialize.success",n)})}async track(t,n){const[r]=await this.analytics;r.track(t,n,{page:ai()}),ol(Web Client Event: ${t} with data: ${JSON.stringify(n)})}async trackPageView(){const t=ai(),[n]=await this.analytics;n.page(void 0,t,{page:t}),ol(Web Client Page View: ${t.path})}async identify(t){this.user=t;const[n]=await this.analytics;n.identify(t.userId,t.traits)}getExtraContext(){return{app_name:this.appName,app_version:this.appVersion,browser_locale:this.browserLocale,device_id:this.deviceId,auth_status:this.user?fn.LoggedIn:fn.LoggedOut,user_traits:this.user?.traits,punch_out_info_token:tf()}}}function BI(e){return({payload:t,next:n})=>{t.obj.context={...t.obj.context,...e.getExtraContext()},n(t)}}const VI=gt(),GI=navigator.language,ci="be225816ebca913752de5971356c8dc8d1671d8b",Rr=new FI({appName:"chatgpt",appVersion:ci,deviceId:VI,browserLocale:GI,options:d_,settings:f_}),_e={initialize({userInfo:e}={}){const t=e?.currentAccount?.structure===Ae.WORKSPACE?e.currentAccount.id:null,n=e?{userId:e.sessionUser.id,traits:{plan_type:e.currentAccount?.planType??null,workspace_id:t}}:null;Rr.initialize({user:n})},logEvent(e,t){Rr.track(e,{...t,origin:"chat",app_version:ci})},logEventWithStatsig(e,t,n){const r={...n,origin:"chat",app_version:ci};Rr.track(e,r),ne.logEvent(t,null,Hd(r,o=>vd(o)))},logPageView(){Rr.trackPageView()},logNewChatButtonClicked({location:e,gizmo_id:t}){this.logEvent("New Chat Button Clicked",{location:e,gizmo_id:t}),ne.logEvent("chatgpt_new_chat_button_clicked",null,{location:e})},logAuthErrorResponse(e,t){this.logEvent("Auth: Error",{error_code:e}),ne.logEvent("chatgpt_auth_error",e,{auth_provider:t})},logNoAuthAttachButtonClicked(e){this.logEvent("No Auth Attach Button Clicked",e),ne.logEvent("chatgpt_web_no_auth_attach_button_clicked",null,e)},logNoAuthVoiceButtonClicked(e){this.logEvent("No Auth Voice Button Clicked",e),ne.logEvent("chatgpt_web_no_auth_voice_button_clicked",null,e)},logLogInButtonClicked(e){this.logEvent("Auth: Login",e),ne.logEvent("chatgpt_auth_log_in",null,e)},logSignUpButtonClicked(e){this.logEvent("Auth: Signup",e),ne.logEvent("chatgpt_auth_sign_up",null,e)},logLogOutButtonClicked(e){this.logEvent("Auth: Logout",e),ne.logEvent("chatgpt_auth_log_out",null,e)},logRateLimitBannerShown(e){this.logEvent("Rate Limit: Show Info",e);const{call_to_action:t,...n}=e,r=n;t?.forEach((o,s)=>{r[call_to_action.${s}]=o}),ne.logEvent("chatgpt_rate_limit_banner_shown",null,{...r,is_new_conversation:e.is_new_conversation.toString(),is_hard_block:e.is_hard_block.toString()})},logRateLimitGetPlusButtonClicked(e){this.logEvent("Rate Limit: Click Upsell",e),ne.logEvent("chatgpt_rate_limit_get_plus_button_clicked",null,{...e,is_new_conversation:e.is_new_conversation.toString(),is_hard_block:e.is_hard_block.toString()})},logRateLimitUpgradePlanButtonClicked(e){this.logEvent("Rate Limit: Click Upsell",e),ne.logEvent("chatgpt_rate_limit_upgrade_plan_button_clicked",null,{...e,is_new_conversation:e.is_new_conversation.toString(),is_hard_block:e.is_hard_block.toString()})},logPopoverHover(e){this.logEvent("Popover Hover",e),ne.logEvent("chatgpt_popover_hover",null,e)},logUpsellGetPlusButtonClicked(e){this.logEventWithStatsig("Upsell: Get Plus Clicked","chatgpt_upsell_get_plus_button_clicked",e)},logToggleShowRecents({isOnlyShowingRecents:e}){this.logEvent("Toggle Show Recents",{isOnlyShowingRecents:e}),ne.logEvent("chatgpt_toggle_show_recents",null,{isOnlyShowingRecents:String(e)})},logToggleShowGptList({isCollapsed:e}){this.logEvent("Toggle Show GPT List",{isCollapsed:e})},logToggleDesktopNavCollapsed({isDesktopNavCollapsed:e,action:t}){this.logEvent("Toggle Desktop Nav Collapsed",{isDesktopNavCollapsed:e}),ne.logEvent("chatgpt_toggle_desktop_nav_collapsed",null,{isDesktopNavCollapsed:String(e),action:t})},logTogglePlanManagementModal({isOpen:e}){const t="chatgpt_toggle_plan_management_modal";this.logEvent("Toggle Plan Management Modal",{isOpen:e}),ne.logEvent(t,null,{isOpen:String(e)})},logPaymentSuccess(e){this.logEvent("Subscription: Payment Success Page",e),ne.logEvent("chatgpt_plan_payment_success_page",null,e)}};function HI({showReturnHome:e=!1}){const t=d.useId(),n=Pu(),[r]=d.useState(()=>{{const o=document.getElementById(t)?.dataset.index;if(o!=null)return parseInt(o)}return Math.floor(Math.random()*sl.length)});return f.jsx("section",{className:"flex h-screen flex-col items-center justify-center","data-index":r,id:t,children:f.jsxs("div",{children:[f.jsxs("h3",{children:[f.jsx($1,{className:"mb-2 h-6 w-6 align-baseline"}),"404 Not Found"]}),f.jsx("p",{className:"mt-2 max-w-lg pb-6",children:f.jsx(Y1,{value:sl[r].message,typing:!0,speed:150,chunk:!0})}),e&&f.jsx(_o,{color:"primary",onClick:()=>{_e.logEventWithStatsig("404 Page Return Home Button Clicked","chatgpt_404_page_return_home_button_clicked"),n("/")},children:f.jsx(zg,{id:"Cc1py2",defaultMessage:"Go to ChatGPT"})})]})})}const sl=[{message:Lost in the vast web,
Where you sought, there's only void—
Nothingness awaits.},{message:Paths cross empty void
Seeking what once existed
Silence answers all.},{message:Where we are, there's only air,
A page misplaced, it isn't there.
In the void where data fades,
Questions linger, answers evade.
Not all paths lead where we care.},{message:Where the page should be,
Empty space and missing words—
A void in the code.},{message:The link was a dream,
A shadow of what once was—
Now, nothing remains.},{message:In the heat of day,
The path dissolves to nothing—
An empty mirage.